package lg.minecraft.plugin.pokemonmenu.command;

import lg.minecraft.plugin.library.command.CommandContext;
import lg.minecraft.plugin.library.command.SubCommand;
import lg.minecraft.plugin.pokemonmenu.LGPokemonMenu;

/**
 * @author langle__
 * @version 1.0
 */
public class SubReloadCommand extends SubCommand {

    public SubReloadCommand() {
        super("reload", "r");
    }

    @Override
    public String getPermission() {return "LGPokemonMenu.command.reload";}

    @Override
    public String getDescription() {
        return "重载配置";
    }

    @Override
    public void onCommand(CommandContext context) {
        LGPokemonMenu.getInstance().reloadConfig();
        context.getSender().sendMessage(LGPokemonMenu.getMessage().getCommandReloadConfig());
    }

}

